<template>
  <a-card>
    <h2 class="mb-2">富文本编辑器</h2>
    <div class="w-sm flex justify-between">
      <a-link @click="textRef.open()">打开富文本编辑器</a-link>
    </div>
  </a-card>
  <RickTextEdit ref="textRef" />
</template>

<script setup>
import { ref } from 'vue'
import RickTextEdit from './RickTextEdit.vue'

const textRef = ref(null)
</script>

<style lang="scss" scoped>
</style>